#ifndef  TIMEDATE_H
#define TIMEDATE_H

#include "ZTypes.h"
#include "Types.h"

/*
 * General time and date functions
 */
#include "ZTypes.h"

#define DEFAULT_INTERNET_TIME_ENABLED	TRUE
#define DEFAULT_TIME_ZONE 				CENTRAL
#define DEFAULT_DAYLIGHT_SAVING 		TRUE
#define DEFAULT_TIME_SERVER_ADDRESS 	"time-a.nist.gov"
// List of available servers: http://tf.nist.gov/tf-cgi/servers.cgi

int getDayOfWeek(int day, int month, int year);
int getLastDayInMonth(int month, int year);
BOOL isLeapYear(int year);
BOOL inDaylightSaving(int day, int month, int year);
BOOL isClockTimeValid();

#endif